package org.aplikator.client.shared.descriptor;

import java.io.Serializable;

import org.jboss.errai.common.client.api.annotations.Portable;

@Portable
public abstract  class WidgetDTO implements Serializable {

	private int size=1;
	private String formatPattern;
	private boolean enabled;
	
	public int getSize() {
		return this.size;
	}

    public WidgetDTO setSize(int size) {
    	this.size = size;
    	return this;
    }

    public WidgetDTO setFormatPattern(String formatPattern) {
    	this.formatPattern = formatPattern;
    	return this;
    }

    public String getFormatPattern() {
    	return this.formatPattern;
    }

    public boolean isEnabled() {
    	return this.enabled;
    }

    public WidgetDTO setEnabled(boolean enabled) {
    	this.enabled = enabled;
    	return this;
    }
    
}
